package com.coin.exchanges.adapter;

import android.support.annotation.NonNull;
import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.coin.exchanges.R;
import com.coin.exchanges.model.haveH;

import java.util.List;

public class PositionContentAdapter extends BaseQuickAdapter<haveH.DataBean, BaseViewHolder> {
    public PositionContentAdapter(int layoutResId, @Nullable List<haveH.DataBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, haveH.DataBean item) {
        helper.setText(R.id.currencyName, "货币名称：" + item.getCurrency_name())
                .setText(R.id.count, "持有数量" + item.getCount());

    }
}
